<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
        <div>
            <div id="ligergridDB" class="sq-grid"></div>
        </div>
    </div>

<script type="text/javascript">
	var gridDB = null;
	var pageInApp={}; // to 下一级子窗口 接口
    var pageInTab=null;
	$(function () {
		initTab();
		initGridDB();//初始化待办列表
	});
    
    
    //初始化待办列表
    function initGridDB(){
    	$("#ligergridDB").ligerGrid({
    		url: '<%=path%>/ass/asspackinfo/mortgageList.do?paySchNo=${paySchNo}' ,
	    	method : 'get',
	        columns: [
	            { display: '项目名称', name: 'FNC_PRJ_NM', minWidth: 100 , enabledSort:false},
	            { display: '放款时间', name: 'TRANS_TM', width: 100,align:'center' , enabledSort:false},
	            { display: '到期时间', name: 'EXPIRE_TM', minWidth: 100 ,  enabledSort:false},
	        ],
	        pageSize:10,
	        root:'rows',
	        record:'total',
	        hideLoadButton : true,
	        width: '100%',
	        height:'100%',
	        heightDiff:-30,
	        rownumbers:true
	    });
	    gridDB = liger.get("ligergridDB");
	    gridDB.setHeight(100);
	    gridDB.options.isSingleCheck=true;
    }
    
   
    
  //初始化回调
	function initCallback(msg) {
	  	if(null != msg.rows[0]){
			exeRow(msg.rows[0]);//设置数据
	  	}
	  	else{
	  		$.ligerDialog.warn('系统错误 ！');
	  	}
	}
    
	//格式化时间
	function renderDate(rowdata, index, value){
		var dateStr = "";
		if(null != value){
			var date = new Date(value);
			dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DDHHMMSS);
		}
		return dateStr;
	}
	
	//初始化Tab页
    function initTab(){
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function(tabid) {
                SetIframe_height();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });
    }
</script>

</body>
</html>